package com.tcy.springcloud.service;

import com.tcy.springcloud.entities.CommonResult;
import com.tcy.springcloud.entities.Payment;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value ="CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

   // public CommonResult<Payment> getPaymentByid(@Param("id") Long id);
   @GetMapping(value ="/payment/get/{id}")
   public CommonResult getPaymentByid(@PathVariable("id") Long id);
}
